<style lang="less">
  .el-form-item {
    margin: 0px 20px 15px 20px;
  }

  .el-collapse {
    border: 0px;
    .el-collapse-item {
      border: 1px solid #dfe6ec;
      margin-bottom: 15px;
      .el-collapse-item__header {
        font-weight: bold;
      }
      .el-collapse-item__content {
        padding-bottom: 0px;
      }
      .el-collapse-item__wrap {
        border-bottom: 0px;
      }
    }
  }
</style>

<template>
  <el-form ref="form" label-position="left" :model="form" :rules="rules" label-width="80px">
    <el-collapse v-model="activeNames">
      <el-collapse-item title="一致性" name="1">
        <el-row>
          <el-col :span="8">
            <el-form-item label="所属大区" prop="region">
              <el-select v-model="form.region" placeholder="请选择活动区域">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-collapse-item>
      <el-collapse-item title="反馈" name="2">
        <el-row>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-collapse-item>
      <el-collapse-item title="效率" name="3">
        <el-row>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-collapse-item>
      <el-collapse-item title="可控" name="4">
        <el-row>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="所属大区">
              <el-input ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-collapse-item>
    </el-collapse>
    <div style="margin-top: 5px;text-align: right">
      <el-button @click="$router.push($route.meta.parent)">取 消</el-button>
      <el-button type="primary" @click="save">确 定</el-button>
    </div>
  </el-form>
</template>

<script>
export default{
  data () {
    return {
      form: {
        region: null
      },
      activeNames: ['1', '2', '3', '4'],
      rules: {
        region: [
          {required: true, message: '请选择活动区域', trigger: 'change'}
        ]
      }
    };
  },
  methods: {
    a (o) {
      console.log(o);
    },
    save () {
      this.$refs['form'].validate((valid) => {
        if (valid) {
          alert('submit!');
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    }
  }
};
</script>
